import homeConfig from '@/router/index/homeConfig'
import operationConfig from '@/router/index/operationConfig'
import tenementConfig from '@/router/index/tenementConfig'
import visualizationConfig from '@/router/index/visualizationConfig'
import adminConfig from '@/router/index/adminConfig'
export default [
    {//综合态势
        path: '/index/home',
        name: 'home',
        component: () => import('@/views/Index/Home.vue'),
        // children: homeConfig
    },
    {//运营管理
        path: '/index/operation',
        name: 'operation',
        component: () => import('@/views/Index/Operation.vue'),
        children: operationConfig
    },
    {//物业管理
        path: '/index/tenement',
        name: 'tenement',
        component: () => import('@/views/Index/Tenement.vue'),
        children: tenementConfig
    },
    {//数据可视
        path: '/index/visualization',
        name: 'visualization',
        component: () => import('@/views/Index/Visualization.vue'),
        children: visualizationConfig
    },
    {//配置管理
        path: '/index/admin',
        name: 'admin',
        component: () => import('@/views/Index/Admin.vue'),
        children: adminConfig
    },
    {//重定向
        path: '/index',
        redirect: '/index/home'
    },
    { //404
        path: '/index:error(.*)',
        component: () => import('@/views/NoFound.vue')
    }
]